﻿using Chromium;
using Chromium.WebBrowser;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace M5.GeminiHybird.Core.XHR
{
    internal class SchemeHandlerFactorCreateEvent
    {
        public static void RequestEvent(object sender, Chromium.Event.CfxSchemeHandlerFactoryCreateEventArgs e)
        {
            var hander = new CfxResourceHandler();
            SchemeHandlerRequestEvent requestEvent = new SchemeHandlerRequestEvent();
            hander.GetResponseHeaders += requestEvent.Hander_GetResponseHeaders;
            hander.ProcessRequest += requestEvent.Hander_ProcessRequest;
            hander.ReadResponse += requestEvent.Hander_ReadResponse;

            e.SetReturnValue(hander);
        }

        


    }

}
